<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport"
        content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="/public/static/index/css/shop.css" />
    <link rel="stylesheet" type="text/css" href="/public/static/index/layui/css/layui.css" />
    <link rel="stylesheet" type="text/css" href="http:////at.alicdn.com/t/font_1907378_h1th65cwy9j.css" />

    <script src="/public/static/index/js/jquery-3.4.1.min.js"></script>
    <script src="/public/static/index/js/common.js"></script>
    <title>列表页</title>
    <meta name="keywords" content="列表页">
    <meta name="description" content="列表页">

</head>

<body>

    {include file="public/head"}
    <div class="header_line"></div>
    <div class="wrap">
        <div class="position">
            <a href="/">首页</a> &gt;
            {volist name="$positionData" id="vo"}
            <a href="/index/lists/index.html?cate_id={$vo.id}">{$vo.cate_name} &gt; </a>
            {/volist}
        </div>
        <div class="filter">

            {if condition='$cateChildrenData'}
            <div class="item">
                <div class="filter_name">分类</div>
                <div class="value_box">
                    
                    {volist name="$cateChildrenData" id="vo"}      
                    <div class="value"><a href="/index/lists/index?cate_id={$vo.id}">{$vo.cate_name}</a></div>
                    {/volist}
                                
                </div>
            </div>
            {/if}

            {if condition='$standardData'}
            {volist name="$standardData" id="vo" key='k'}
           
            <div class="item">
                <div class="filter_name">{$key}</div>
                <div class="value_box">
                        {php}
                            $arr=$bb=explode(',',$filter);
                            //volist循环是从1开始的，数组是从0开始的
                            $arr[(int)$k-1]=0;
                            
                            $str=implode(',',$arr);
                        {/php}

                    <div class="value"><a href="/index/lists/index?cate_id={$cate_id}&filter={$str}"
                            class="{php} if(isset($bb[(int)$k-1]) && $bb[(int)$k-1]==0){echo 'color1';} {/php}">全部</a></div>
                    {volist name="$vo" id="vo1"}
                        {php}
                            $arr=$b=explode(',',$filter);
                            //volist循环是从1开始的，数组是从0开始的
                            $arr[(int)$k-1]=$vo1['id'];
                            
                            $str=implode(',',$arr);
                        {/php}

                    <div class="value"><a href="/index/lists/index?cate_id={$cate_id}&filter={$str}" class="{php} if(isset($b[(int)$k-1]) && $b[(int)$k-1]==$vo1['id']){echo 'color1';} {/php}"
                            >{$vo1.standard_value}</a></div>
                    {/volist}
                </div>
            </div>
            {/volist}
            {/if}

        </div>
        <div class="order_box">
            <div class="order2 {if condition='$order eq 1'}current{/if}"><a href="{:url('index/lists/index',array('cate_id'=>$cate_id,'filter'=>$filter,'order'=>1))}">综合排序</a></div>
            <div class="order2 {if condition='$order eq 2'}current{/if}"><a href="{:url('index/lists/index',array('cate_id'=>$cate_id,'filter'=>$filter,'order'=>2))}">销量 <i
                        class="iconfont iconpaixujiantouxia"></i></a></div>
           
            <div class="order2 {if condition='$order eq 3'}current{/if}"><a href="{:url('index/lists/index',array('cate_id'=>$cate_id,'filter'=>$filter,'order'=>3))}">价格 <i
                        class="iconfont iconpaixujiantouxia"></i></a></div>
            <div class="order2 {if condition='$order eq 4'}current{/if}"><a href="{:url('index/lists/index',array('cate_id'=>$cate_id,'filter'=>$filter,'order'=>4))}">价格 <i
                        class="iconfont iconpaixujiantoushang"></i></a></div>
        </div>
        <div class="lists_goods">
            {volist name="$goodsData" id="vo"}
            <a class="item" href="/index/goods/index.html?goods_id={$vo.goods_id}">
                <div class="pic"><img src="{$vo.goods_thumb}"></div>
                <div class="info">
                    <div class="goods_name">{$vo.goods_name}</div>
                    <div class="price">￥{$vo.goods_price}</div>
                    <div class="icon"><i class="iconfont icongouwuche"></i></div>
                </div>
            </a>
           {/volist}
        
           {$goodsData|raw}

        </div>
    </div>

    <div class="foot_line"></div>
    {include file="public/foot2"}


    <style>
        .order2{
            position: relative;
        }
        .iconpaixujiantoushang{
            position: absolute;
            bottom: -3px;
        }
        .iconpaixujiantouxia{
            position: absolute;
            bottom: 3px;
        }
    </style>

</body>

</html>